﻿@model IEnumerable<TCM.MAPSTRINGBASE>

@{
    ViewBag.Title = "Index";
}
<div class="IndexBack">
    @Html.ActionLink(" ", "../")
</div>
<br />
<div class="toolbar">
    @Html.ActionLink("Create New", "Create")
</div>
<br />

<table class="grdTable" style="width: 100%;" cellspacing="0">
    <thead>
<tr class="GridHeader">
    <tr>
            <th>
                @Html.DisplayNameFor(model => model.DISPLAYNAME)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.DISPLAYVALUE)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.ENTITYNAME)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.ATTRIBUTENAME)
            </th>
            <th></th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model)
        {
            <tr>
                @*  <td>
            @Html.DisplayFor(modelItem => item.Subject.CODE)
        </td>*@
                <td>
                    @Html.DisplayFor(modelItem => item.DISPLAYNAME)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.DISPLAYVALUE)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.ENTITYNAME)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.ATTRIBUTENAME)
                </td>
                <td>
                    @Html.ActionLink("Edit", "Edit", new { id = item.MAPSTRINGID }) |         
            @Html.ActionLink("Delete", "Delete", new { id = item.MAPSTRINGID })
                </td>
            </tr>
        }
    </tbody>

</table>
